using CodeGeneratorLibrary;
using Templates.Interfaces;

namespace Templates.Bitrix.Database
{
	public partial class Scripts : ICodeFile
	{
		private Table _table;

		public void BindData(Table table)
		{
			_table = table;
		}
		public string EntityName { get { return _table.EntityName; } }

		public string ClassName
		{
			get { return string.Format("{0}", _table.EntityName); }
		}
		public string ruName { get; set; }

		public Options Options { get { return CodeGeneratorLibrary.Options.Factory; } }
		public string ProcName { get { return string.Format("{0}", ClassName); } }

		public string ProjectFileType { get { return "Content"; } }
		public string ProjectFilePath { get { return @"DataLayer\StoredProcedure\Scripts\" + ClassName + ".sql"; } }
		public string ProjFullName { get { return @"D:\e\CodeGenerator\ws.nafania\ws.nafania.csproj"; } }

/*
		public string ProjFullName { get { return @"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\ClassLibrary2\ClassLibrary2\ClassLibrary2.csproj"; } }
*/
	}
}